<?php
class Galerias extends WP_Widget {

	function __construct(){
		parent::__construct('galeria-1', 'Aves PT Galeria - 1', array('description' => 'Galeria Simples.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		do_gallery_carousel_simple ('canarios');
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Galeria - 1') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}